﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Cataloger.Okna.Pomocnicze
{
    public partial class FrmWysz : Form
    {
        BackgroundWorker bg;
        public FrmWysz(int licz,BackgroundWorker b)
        {
            InitializeComponent();
            bg = b;
            progressBar1.Maximum = licz;
        }

        private void btnPrzerwij_Click(object sender, EventArgs e)
        {
            btnPrzerwij.Enabled = false;
            bg.CancelAsync();
            
        }
    }
}
